﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace ParseControls
{
    public class FwExpander : Expander
    {
        public object Title
        {
            get { return (object)GetValue(TitleProperty); }
            set { SetValue(TitleProperty, value); }
        }
        public static readonly DependencyProperty TitleProperty =
            DependencyProperty.Register("Title", typeof(object),
            typeof(FwExpander), new PropertyMetadata(null));


        public Brush HeaderBackground
        {
            get { return (Brush)GetValue(HeaderBackgroundProperty); }
            set { SetValue(HeaderBackgroundProperty, value); }
        }
        public static readonly DependencyProperty HeaderBackgroundProperty =
            DependencyProperty.Register("HeaderBackground", typeof(Brush),
            typeof(FwExpander), new PropertyMetadata(Brushes.Transparent));

        // ctr 
        public FwExpander()
            : base()
        { }
        static FwExpander()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(FwExpander),
                new FrameworkPropertyMetadata(typeof(FwExpander)));
        }
    }
}
